import { observe } from "../reactive/observe.mjs";
import { Watcher } from "../reactive/watcher.mjs";

const obj = {
    arr: [[1, 2]]
}

observe(obj);

new Watcher(obj, 'arr', function (newVal, oldVal) {
    console.log('watch', newVal, oldVal)
})

obj.arr[0].push(3);